"""
迭代器
"""


def foo():
    yield 123
    yield 'abc'
    yield from 'abc'
    yield from range(1, 4)
    # for i in range(1, 4):
    #     yield i


gen = foo()
print(type(gen))

for value in gen:
    print(value)
